package chaer03;
class  Student16{
    private String name;
    private int age;
    private static String school = "A大学";
    public Student16 (String name,int age){
        this.name = name;
        this.age = age;
    }
    public void info(){
        System.out.println("姓名："+ this.name+",年龄："+this.age+",学校："+ school);
    }
    public String getName(){
        return name;
    }
    public  void setName(String name){
        this.name= name;
}
    public int getAge() {
        return age;
    }
    public void setAge(int age){
        this.age = age;
    }
    public static String getSchool () {
            return school;
        }
                public static void setSchool (String school){
                    school = school;
                }
            }
            class Example15{
                public static void main(String[] args) {
                    Student stu1 = new Student();
                    Student stu2 = new Student();
                    Student stu3 = new Student();

                }
            }
